package com.cw.realtime.common
package bean

case class TrafficHomeDetailPageViewBean(

  home_uv_ct: Long, // 首页独立访客数
  good_detail_uv_ct: Long, // 商品详情页独立访客
  ts: Long,
  stt: String = "",
  edt: String = "",
  cur_date: String = "",

) {
  def +(that: TrafficHomeDetailPageViewBean): TrafficHomeDetailPageViewBean =
    TrafficHomeDetailPageViewBean(home_uv_ct + that.home_uv_ct, good_detail_uv_ct + that.good_detail_uv_ct, ts, stt, edt, cur_date)


  def transWindowRange(stt: String, edt: String, curDate: String): TrafficHomeDetailPageViewBean = {
    TrafficHomeDetailPageViewBean(home_uv_ct, good_detail_uv_ct, ts, stt, edt, curDate)
  }
}
